<?php

$TPL_PATH = dirname(__FILE__) . "/tpl/";
$PHP_PATH = dirname(__FILE__) . "/php/";

$content = file_get_contents($TPL_PATH . "main.tpl");

$gallery = new ToIndex();

$content = strtr($content,
	array(
		"{GALLERY}" => $gallery->out()
		)
	);

$out = strtr(file_get_contents("template/main.tpl"),
	array(
	'{CONTENT}' => $content,
		)
	);